<div ng-controller="branchController">
	<div class="modal fade personal-add branch-add" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true" id="details">
	    <div class="modal-dialog modal-lg" role="document">
	        <div class="modal-content large-model">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">新增分管</h4>
	            </div>
	            <div class="modal-body">  
					<form name="userAdd_form">

                                <div class="overflow-hide form-group">
                                    <label class="col-xs-12 col-sm-2 control-label text-right">分馆名称：</label>
                                    <div class="col-xs-12 col-sm-10">
                                        <input type="text" 
                                               name=""
                                               class="form-control blue-border" 
                                               autocomplete="off"
                                               ng-minlength="2" 
                                               ng-maxlength="20"  
                                               required 
                                        />
                                        <label class="red required">*</label>
                                    </div>       
                                </div>
                          
                                <div class="form-group height-auto">
                                    <label class="col-xs-12 col-sm-2 control-label text-right">关键字：</label>
                                    <div class="col-xs-12 col-sm-10">
                                        <input type="text" 
                                               name=""
                                               class="form-control blue-border" 
                                               autocomplete="off"
                                               ng-minlength="2" 
                                               ng-maxlength="20"  
                                               required 
                                        />
                                        <label class="red required">*</label>
                                    </div>
                                </div>

                                <div class="form-group height-auto">
                                    <label class="col-xs-12 col-sm-2 control-label text-right">年龄范围：</label>
                                    <div class="col-xs-1 col-sm-2">
                                        <input type="text" 
                                               name=""
                                               class="form-control blue-border" 
                                               placeholder="最小年龄" 
                                               autocomplete="off"
                                               required 
                                        	   />
                                    </div>
                                    <p class="division pull-left">至</p>
                                    <div class="col-xs-1 col-sm-2">
                                    	<input type="text" 
                                               name=""
                                               class="form-control blue-border" 
                                               placeholder="最大年龄" 
                                               autocomplete="off"
                                               required 
                                        	   />
                                    </div>
                                    <label class="col-xs-12 col-sm-2 control-label text-right ">启用/禁用：</label>
                                    <div class="col-xs-12 col-sm-2">
                                        <select ng-model="role_autoAssignment" class="ng-pristine ng-valid ng-touched blue-border">
                                            <option value="" class="" selected="selected">请选择</option>
                                            <option value="number:0" label="启用">启用</option>
                                            <option value="number:1" label="禁用">禁用</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="overflow-hide form-group height-auto">
                                    <label class="col-xs-12 col-sm-2 control-label text-right">描述：</label>
                                    <div class="col-xs-12 col-sm-10">
                                        <textarea rows="5" 
                                                  type="text" 
                                                  name="description" 
                                                  class="form-control blue-border" 
                                                  ng-model="edit_description"
                                                  />
                                        </textarea>
                                    </div>
                                </div>

                                <div class="overflow-hide form-group height-auto">
	                                <div class="col-xs-12 col-sm-12 text-right">
										
	                                	<button type="button" class="add-column btn btn-normal pull-left btn-default padding-two" ng-click="addtr()">
	                                		<span class="glyphicon glyphicon-plus"></span>  
	                                		栏目
	                                	</button>
										<table class="table-column table table-bordered table-header">
	                                        <thead class="border-table">
	                                            <tr>
	                                                <td class="w15 text-left">栏目标题</td>
	                                                <td class="w15 text-left">所属资源</td>
	                                                <td class="w15 text-left">是否专题</td>
	                                                <td class="w15 text-left">排序</td>
	                                                <td class="w40 text-left">操作</td>
	                                            </tr>
	                                        </thead>
                                        </table>
	                                    <div class="table-body">   
	                                       <table class="table-column table table-bordered table-header talbe-fbfbfb">
		                                        <tbody class="">
		                                            <tr ng-repeat="val in branchadd" ng-class="{'active':$index%2!=0}">
		                                                <td class="w15 text-left" >
		                                                	<select ng-model="val.title"  class="ng-pristine ng-valid ng-touched">
					                                            <option value="" class="" >最上级</option>
					                                            <option value="number:0" label="是" selected="selected">一级</option>
					                                            <option value="number:1" label="否">子级</option>
					                                        </select>
		                                                </td>
		                                                <td class="w15 pointer text-left" data-toggle="modal" data-target="#subColumn" >
																<span ng-bind="val.ownedResources" ></span>
		                                                </td>
		                                                <td class="w15 text-left">
		                                                	<select ng-model="val.thematic"  class="ng-pristine ng-valid ng-touched">
					                                            <option value="" class="" >请选择</option>
					                                            <option  selected="selected">是</option>
					                                            <option value="number:1" label="否">否</option>
					                                        </select>
		                                                </td>
		                                                <td class="w15 text-left">
		                                                	<select ng-model="val.sort" class="ng-pristine ng-valid ng-touched">
					                                            <option value="" class="" >请选择</option>
					                                            <option  >升序</option>
					                                            <option >降序</option>
					                                        </select>
		                                                </td>
		                                                <td class="w40 text-left icon-td">
		                                                	<span class="btn-i" title="关联资源" ui-sref="user.branchDetails">
				                                                	<img width="14px" src="../images/right-product/relation-resource.png">
				                                            </span>
				                                            <span class="float-left">关联资源</span>
				                                            <span class="btn-i" title="关联分类" ui-sref="user.branchDetails">
				                                                	<img width="14px" src="../images/right-product/relation-class.png">
				                                            </span>
				                                            <select class="ng-pristine ng-valid ng-touched float-left">
					                                            <option selected="selected">关联分类</option>
					                                            <option>最上级</option>
					                                            <option>一级</option>
					                                            <option>子级</option>
					                                        </select> 
					                                        <span class="btn-i" title="删除" ng-click="deletetr($index)">
				                                                	<img width="14px" src="../images/right-product/delete.png">
				                                            </span>
		                                                </td>
		                                            </tr>
		           
		                                            <tr>
		                                                <td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
		                                            </tr>
		                                        </tbody>
		                                  
		                                    </table>
										</div>                                	
									</div>
                                </div>

                        	</form>
							
	           	</div>
	        	<div class="line-public"></div>
				<div class="storage-add-footer show text-center">
					<div class="btns-group">
						<button type="button" class="btn  btn-fff" data-dismiss="modal" aria-hidden="true">返回</button>
					</div>
				</div>
	    	</div>
	
		</div>
	</div>	
</div>
